﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;
using CommonWeb;

namespace ProjectTest
{
    public partial class HttpUpload : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            FileInfo fi = new FileInfo(@"E:\ouput.html");
            DateTime dt = fi.CreationTime;
            TimeSpan ts = new TimeSpan();
            ts = DateTime.Now - dt;
        }

        protected void btn_UploadFile_Click(object sender, EventArgs e)
        {
            HttpUploadFile u = new HttpUploadFile();
            var data = File.ReadAllBytes(@"C:\Users\yumin\Desktop\DOS.JPG");
            string ss = u.UploadFile("http://192.168.8.102:97/comm/fileupload.ashx", "testaa", "b.jpg", data);
        }
    }
}